package com.zyzd.retrofit.base;


/**
 * Created by lzy on 2018/4/28 0028.
 * description ${BasePresenter}
 */

public abstract class BasePresenter<V extends BaseContract.IView> implements BaseContract.IPresenter<V> {

    protected V mView;

    public void attachView(V view) {
        this.mView = view;
        createModel();
    }

    /**
     * 再次初始化你需要的model
     */
    protected abstract void createModel();

}
